package xyz.lisys.groovy

class Demo {
    Integer age = null

    Demo() {
        age = 23
    }

    String sayHello(String name, String sex, Integer age) {
        if (age < 10) {
            age = this.age
        }

        println 'hello'
        return "name: ${name} sex: ${sex} age: ${age}"
    }
}

def sayWorld(String name, String sex, Integer age) {
    println 'world'
    return "name: ${name} sex: ${sex} age: ${age}"
}

println new Demo().sayHello('zy', '1', 23)
